/* Original code (c) Acorn Computers Ltd, 1992-3 */

/* $Id: c._PutBytes 3.1 93/03/09 23:26:35 brian Exp $ */

#include "FS.h"

_kernel_oserror *fsentry_putbytes( FSEntry_PutBytes_Parameter *parm )
{
  FileEntry *fe=(FileEntry *)parm->handle;
  FileDesc d = FileEntry_Desc( fe );
  int pos;
#ifdef DEBUG
  printf("putbytes\n");
#endif
  if ( d.buffered )
    return FileEntry_PutBytes( fe, parm->source_start,
                                        parm->file_offset_to_put_data_to,
                                        parm->bytes_to_write, &pos );
  else
    return FileEntry_PutByte(fe,parm->byte_to_put);
}
